<header>
    <div class="title">
        <a href="">Clientes</a><span> > </span><strong>Actualizar cliente</strong>
    </div>
    <div class="shortcuts">
        <a href=""></a>
    </div>
    <div class="help">
        <a href="">Ayuda</a>
    </div>
</header>
<div class="sidebar">
    <div id="client-update" class="content">
        <h3>Datos de usuario</h3>
        <?php if (!empty($validacion)) { ?>
        <div class="alert alert-error">
            <span class="icon block"></span>
            <strong>Se han encontrado errores:</strong>
            <ul>
                <?php foreach ($validacion as $item_fail) { ?>
                    <li><label for="client-update-form-<?php echo $item_fail['item']; ?>"><?php echo $item_fail['message']; ?></label></li>
                <?php } ?>
            </ul>
        </div>
        <?php } ?>
        <form id="client-update-form" action="#" method="post" enctype="multipart/form-data">
            <input name="form-action" type="hidden" value="update-client" />
            <div class="form-fields">
                <div class="double">
                    <label>
                        <span class="name">Nombre:</span>
                        <input type="text" readonly id="client-update-form-nombre" name="nombre" value="<?php if ($client->get('usuarios','nombre')) echo html_entity_decode($client->get('usuarios','nombre')); ?>" placeholder="Sin datos" />
                        <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                    </label>
                    <label>
                        <span class="name">Apellido:</span>
                        <input type="text" readonly id="client-update-form-apellido" name="apellido" value="<?php if ($client->get('usuarios','apellido')) echo html_entity_decode($client->get('usuarios','apellido')); ?>" placeholder="Sin datos" />
                        <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                    </label>
                </div>
                <label>
                        <span class="name">Email:</span>
                        <input type="text" readonly id="client-update-form-email" name="email" value="<?php if ($client->get('usuarios','email')) echo html_entity_decode($client->get('usuarios','email')); ?>" placeholder="Sin datos" />
                        <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
            </div>
            <h3>Datos de cliente</h3>
            <div class="form-fields">
                <div class='double'>
                    <label>
                            <span class="name">Cursos por semana:</span>
                            <input type="text" name="ofertas" value="<?php if (!is_null($client->get('clientes','ofertas_max'))) echo html_entity_decode($client->get('clientes','ofertas_max')); ?>" id="client-update-form-ofertas" placeholder="Cantidad de cursos por semana" />
                            <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                    </label>
                    <label>
                            <span class="name">Clases por dia:</span>
                            <input type="text" name="clasesxdia" value="<?php if (!is_null($client->get('clientes','clasesxdia'))) echo html_entity_decode($client->get('clientes','clasesxdia')); ?>" id="client-update-form-clasesxdia" placeholder="Cantidad de clases por dia" />
                            <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                    </label>
                </div>
                <div class='triple'>
                    <label>
                            <span class="name">Almacenamiento:</span>
                            <input type="text" name="almacenamiento" value="<?php if (!is_null($client->get('clientes','almacenamiento_max'))) echo html_entity_decode($client->get('clientes','almacenamiento_max')); ?>" id="client-update-form-almacenamiento" placeholder="Capacidad total" />
                            <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                    </label>
                    <label>
                            <span class="name">Users p/transmision:</span>
                            <input type="text" name="user_max" value="<?php if (!is_null($client->get('clientes','alumnos_max'))) echo html_entity_decode($client->get('clientes','alumnos_max')); ?>" id="client-update-form-alumnos" placeholder="Alumnos por transmision" />
                            <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                    </label>
                    <label>
                            <span class="name">Duracion:</span>
                            <input type="text" name="duracion" value="<?php if (!is_null($client->get('clientes','duracion_max'))) echo html_entity_decode($client->get('clientes','duracion_max')); ?>" id="client-update-form-duracion" placeholder="Duracion en minutos" />
                            <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                    </label>
                </div>
                <label>
                        <span class="name">Exhibiciones:</span>
                        <input type="text" name="exhibiciones" value="<?php if (!is_null($client->get('clientes','exhibicion_max'))) echo html_entity_decode($client->get('clientes','exhibicion_max')); ?>" id="client-update-form-exhibicion" placeholder="Cantidad de exhibiciones por mes" />
                        <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
                <label>
                        <span class="name">Clases Personalizadas:</span>
                        <input type="text" name="clases_personalizadas" value="<?php if (!is_null($client->get('clientes','clases_personalizadas_max'))) echo html_entity_decode($client->get('clientes','clases_personalizadas_max')); ?>" id="client-update-form-clases-personalizadas" placeholder="Cantidad de clases personalizadas por mes" />
                        <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
                <label>
                        <span class="name">Clases agregadas:</span>
                        <input type="text" name="clases_agregadas" value="<?php if (!is_null($client->get('clientes','clases_agregadas'))) echo html_entity_decode($client->get('clientes','clases_agregadas')); ?>" id="client-update-form-clases-agredadas" placeholder="Cantidad de clases agredadas a curso por mes" />
                        <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
                <label>
                        <span class="name">Cantidad de reservas:</span>
                        <input type="text" name="reservas" value="<?php if ($client->get('clientes','reservas_max')) echo html_entity_decode($client->get('clientes','reservas_max')); ?>" id="client-create-form-reservas" placeholder="Cantidad de reservas de clases" />
                        <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
                <div class='double'>
                    <label>
                            <span class="name">Invitaciones:</span>
                            <input type="text" name="invitaciones" value="<?php if (!is_null($client->get('clientes','invitaciones_max'))) echo html_entity_decode($client->get('clientes','invitaciones_max')); ?>" id="client-update-form-invitaciones" placeholder="Cantidad de invitaciones por clase" />
                            <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                    </label>
                    <label>
                            <span class="name">Eventos:</span>
                            <input type="text" name="eventos" value="<?php if (!is_null($client->get('clientes','eventos_max'))) echo html_entity_decode($client->get('clientes','eventos_max')); ?>" id="client-update-form-eventos" placeholder="Cantidad de eventos por mes" />
                            <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                    </label>
                </div>
            </div><br>
            <a class="button" href="javascript:document.getElementById('client-update-form').submit();">Actualizar cliente</a>
            <a class="button" href="<?php echo $host .'clients/'; ?>">Cancelar</a>
        </form>
    </div>
</div>